@extends('host.custom.common.common')

@section('c-head')
    <script>
        var PAGE_DATA = {
            pagingObj : {
                total : 0,
                perpage : 7,
                page : 1
            }
        };
    </script>
@stop

@section('body')
        <!-- top_test -->
<div id="top_test"></div>

<!-- web_logo_search -->
<div id="web_logo_search"></div>

<!-- comm_nav -->
<div id="comm_nav"></div>

<div class="com-w mt20">
    <div class="wrapper clearfix">
        <div id="commleftmenu" class="w220 mr20 comm-left-menu">
            <div class="menu-top-title">{{ Auth::user()->isProvider() ? '供应商' : '采购商' }}中心</div>
            <div id="leftmenuitems"></div>
        </div>
        <div class="w960 comm-main">
            <div class="main-release clearfix">
                <div class="main-release-nav">
                    您当前的位置：
                    <a href="javascript:void(0)">首页</a>
                    >
                    <a href="javascript:void(0)">{{ Auth::user()->isProvider() ?  '供应商' : '采购商' }}中心</a>
                    > 短消息
                </div>
                <div class="main-release-title">
                    <span class="icons"></span>
                    <span class="release-title-h3 f16">短消息</span>
                </div>
                <div class="clearfix big-box">
                    <div id="commTabs_1" class="comm-tabs">
                        <div class="comm-tabs-head">
                            <div class="head-item current">未读消息</div>
                            <div class="head-item">系统消息</div>
                        </div>
                        <div class="comm-tabs-body">
                            <!-- 1 -->
                            <div class="body-item current">
                                <div class="consult-center mt20">
                                    <div class="head">
                                        <ul class="clearfix">
                                            <li class="wb10">
                                                <input type="checkbox" id="uncheckbox">
                                                <span class="ml5 " id="unall" style="cursor:pointer">全选</span>
                                                <a href="javascript:void(0)" class="c-yer ml5 f12" id="delUnreadAll">删除</a>
                                            </li>
                                            <li class="wb20">用户名</li>
                                            <li class="wb30">内容</li>
                                            <li class="wb20">时间</li>
                                            <li class="wb20">操作</li>
                                        </ul>
                                    </div>
                                    <div class="consult-main clearfix short-message mb20" id="unread-line" >

                                    </div>
                                    <div id="unread-paging" class="comm-paging mt2" style="float: right;" ></div>
                                </div>
                            </div>
                            <!-- 2 -->
                            <div class="body-item">
                                <div class="consult-center mt20">
                                    <div class="head">
                                        <ul class="clearfix">
                                            <li class="wb10">
                                                <input type="checkbox" id="syscheckbox">
                                                <span class="ml5 " id="sysall" style="cursor:pointer">全选</span>
                                                <a href="javascript:void(0)" class="c-yer ml5 f12" id="delSysAll">删除</a>
                                            </li>
                                            <li class="wb20">用户名</li>
                                            <li class="wb30">内容</li>
                                            <li class="wb20">时间</li>
                                            <li class="wb20">操作</li>
                                        </ul>
                                    </div>
                                    <div class="consult-main clearfix short-message mb20" id="system-line">

                                    </div>
                                    <div id="system-paging" class="comm-paging mt2" style="float: right;" ></div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- foot_nav -->
<div id="foot_nav"></div>

<div id="bottom_main"></div>
<!-- 未读短信 -->
<script type="text/template" id="unread-template">
    <%_.each(obj, function(item){%>
    <ul class="clearfix" data-id="<%=item.id %>">
        <li class="wb10 tl">
            <input type="checkbox" onclick="clickCheck(this,'uncheckbox','unck')" name="unck" value="<%=item.id %>"></li>
        <li class="wb20 c-yer"><%=item.uname %></li>
        <li class="wb30">
                                                    <span class="f14 mt15 fl tl c-999">
                                                        <%=item.content %>
                                                    </span>
        </li>
        <li class="wb20"><%=item.time %></li>
        <li class="wb20">
            <div class="mt30">
                <span class="btn btn-default btn-w70x32">查看详情</span>
                <span class="btn btn-important btn-w70x32 sel-edit-del">删除</span>
            </div>
        </li>
    </ul>
    <%});%></script>
<!-- 系统消息 -->
<script type="text/template" id="system-template">
    <%_.each(obj, function(item){%>
    <ul class="clearfix" data-id="<%=item.id %>">
        <li class="wb10 tl">
            <input type="checkbox" onclick="clickCheck(this,'syscheckbox','sysck')" name="sysck" value="<%=item.id %>"></li>
        <li class="wb20 c-yer"><%=item.uname %></li>
        <li class="wb30">
                                                    <span class="f14 mt15 fl tl c-999">
                                                        <%=item.content %>
                                                    </span>
        </li>
        <li class="wb20"><%=item.time %></li>
        <li class="wb20">
            <div class="mt30">
                <span class="btn btn-default btn-w70x32">查看详情</span>
                <span class="btn btn-important btn-w70x32 sel-edit-del">删除</span>
            </div>
        </li>
    </ul>
    <%});%></script>
<!-- 确认框收款 -->
<script type="text/template" id="item-confirm">
    <div class="dialog-div">
        <div style="color:red;">确认删除短信?</div>
        <div class="price-game-btn">
            <span class="btn btn-gray btn-w140x40 remove">取消</span>
            <span class="btn btn-warn btn-w140x40" id="tj">确定</span>
        </div>
    </div>
</script>
<link rel="stylesheet" href="/assets/b2b/css/jquery-ui.min.css">
<script src="/assets/b2b/js/libs/jquery-ui.min.js"></script>
<script src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
<script src="/assets/b2b/js/libs/messages_zh.js"></script>
<script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
<script src="/assets/b2b/js/libs/jquery.paging.min.js"></script>
<script src="/assets/b2b/js/pageModules/supplyer/S27.js"></script>
@stop